package net.xxcl.exam.pojo;

import net.xxcl.exam.util.JsonDateSerializer;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.io.Serializable;
import java.util.Date;

public class Paper implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private Integer kemuid;

    private Integer state;

    private Date addtime;

    /**
     * 考试开始时间
     */
    private Date starttime;

    /**
     * 考试时间
     */
    private Integer kstime;

    /**
     * 总分
     */
    private Integer totalmark;

    private String kemuname;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getKemuid() {
        return kemuid;
    }

    public void setKemuid(Integer kemuid) {
        this.kemuid = kemuid;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @JsonSerialize(using=JsonDateSerializer.class)
    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    /**
     * @return 考试开始时间
     */
    @JsonSerialize(using=JsonDateSerializer.class)
    public Date getStarttime() {
        return starttime;
    }

    /**
     * @param starttime 
	 *            考试开始时间
     */
    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    /**
     * @return 考试时间
     */
    public Integer getKstime() {
        return kstime;
    }

    /**
     * @param kstime 
	 *            考试时间
     */
    public void setKstime(Integer kstime) {
        this.kstime = kstime;
    }

    public Integer getTotalmark() {
        return totalmark;
    }

    public void setTotalmark(Integer totalmark) {
        this.totalmark = totalmark;
    }

    public String getKemuname() {
        return kemuname;
    }

    public void setKemuname(String kemuname) {
        this.kemuname = kemuname;
    }
}